from gaesessions import SessionMiddleware
import datetime
# ck = os.urandom(64)
ck = "\xf7\xb0\x94\x8f\xaa\x0b\xda\xeb*\x86A\xb1X\x03\xda\x9e\xab\xd5'\xf6\x02\xab\xf0\xbc\xda\xcf\xf5\xbei1\xd8huG\xc2\xe9\x0e\x9a\x9cz/?y\x0fN5\xe6j.\xd8X|\x83\xf3\xd1\x0cE\x85\x93E\x88*M\x9d";

def webapp_add_wsgi_middleware(app):
	app = SessionMiddleware(app, cookie_key=ck)
	app.lifetime = datetime.timedelta(days=365)
	return app